// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
// eslint-disable-next-line no-unused-vars
import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import axios from 'axios'
import qs from 'qs'
// 导入样式文件
import './assets/css/global.css'
import './assets/fonts/iconfont.css'
// import AMap from 'vue-amap'
import store from './store/index';
// 导入字体文
Vue.use(ElementUI)
Vue.prototype.$ajax = axios // 将axios改写为Vue的原型属性
Vue.prototype.$qs = qs
Vue.config.productionTip = false
//请求拦截器
axios.interceptors.request.use(config=>{
  config.headers.Authorization = window.sessionStorage.getItem('token');
  return config;
})
// eslint-disable-next-line no-new
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})

